package com.cy.service.impl;

import com.cy.entity.PopularCourses;
import com.cy.entity.Recommendations;
import com.cy.mapper.RecommendationsMapper;
import com.cy.service.IRecommendationsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
@Service
public class RecommendationsServiceImpl extends ServiceImpl<RecommendationsMapper, Recommendations> implements IRecommendationsService {

    @Autowired
    private RecommendationsMapper recommendationsMapper;
    @Override
    public List<PopularCourses> findTopThreePopularCourses() {
        return recommendationsMapper.findTopThreePopularCourses();
    }

}
